﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class login : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
		 if (!Utility.Util.IsEmptyString(Request.Form["name"]) )
		{
			if (!SessionMan.ValidateCheckCode(Request.Form["checkCode"]))
				feedBack.Text = "请输入正确的验证码";
			else
			{
				String loginResult = SE6.UserMan.Login(Request);
				if (loginResult == "")//登陆成功
					Response.Redirect("Default.aspx");
				else
					feedBack.Text = loginResult;
			}
			name.Value = Request.Form["name"];
		}
		navMenu.InnerHtml = GUI.NavMenu(PageClass.Login);
    }
}
